package com.syedu.day10.example2;

/**
 * description：
 * @author Administrator
 * @date 2022/3/21 15:35
 */
public class VehicleService {

    private static VehicleService service = new VehicleService();

    private VehicleService(){

    }

    public static VehicleService getService(){
        return service;
    }

    public void goToWork(Vehicle vehicle){
        vehicle.move();
    }
}